
package graphics3d;

import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;


public class Graphics3d {

    public static void main(String[] args) {
        
        Toolkit dt = Toolkit.getDefaultToolkit();
        Dimension screenSize = dt.getScreenSize();
        int frameHeight = screenSize.height;
        int frameWidth = screenSize.width;
        
        int L = -68;
        int R = 68;
        int B = -38;
        int T = 38;
        
        Object3d house = graphics3d.figures.House.getFigure();
        Object3d centr = graphics3d.figures.Centr.getFigure();
        Camera camera = new Camera(20);
        
        Scene scene = new Scene(frameWidth, frameHeight, L, R, B, T);
        scene.add(centr);
        scene.add(house);
        scene.add(camera);
        
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(frameWidth, frameHeight);
        frame.getContentPane().add(scene);
        frame.setVisible(true);
        frame.addKeyListener(new KeyboardController(scene, house));

    }
    
}
